import type { PageModuleTypes } from '../types/index';

/** 服务表单 */
const modules: PageModuleTypes[] = [
  {
    path: '/',
    name: 'serviceForm',
    navigationStyle: 'custom',
    navigationBarTitleText: '服务表单',
  },
  {
    path: 'sysServiceFormRecord',
    name: 'sysServiceFormRecord',
    navigationStyle: 'custom',
    navigationBarTitleText: '服务表单记录',
  },

  {
    path: 'collectRecordDetails',
    name: 'collectRecordDetails',
    navigationStyle: 'custom',
    navigationBarTitleText: '表单详情',
  },
  {
    path: 'appServiceFormRecord',
    name: 'appServiceFormRecord',
    navigationStyle: 'custom',
    navigationBarTitleText: '服务表单记录',
  },
  {
    path: 'appServiceFormRecordDetail',
    name: 'appServiceFormRecordDetail',
    navigationStyle: 'custom',
    navigationBarTitleText: '表单详情',
  },
  {
    path: 'createServiceForm',
    name: 'createServiceForm',
    navigationStyle: 'custom',
    navigationBarTitleText: '创建/编辑表单',
    disableScroll: true,
    children: [
      {
        path: 'createServiceFormResult',
        name: 'createServiceFormResult',
        navigationStyle: 'custom',
        navigationBarTitleText: '业务结果',
      },
      {
        path: 'serviceFormPreview',
        name: 'serviceFormPreview',
        navigationStyle: 'custom',
        navigationBarTitleText: '表单预览',
      }
    ],
  },
  {
    path: 'serviceFormFilling',
    name: 'serviceFormFilling',
    navigationStyle: 'custom',
    navigationBarTitleText: '填写表单',
    children: [
      {
        path: 'serviceFormFillingResult',
        name: 'serviceFormFillingResult',
        navigationStyle: 'custom',
        navigationBarTitleText: '业务结果',
      }
    ]
  },
  {
    path: 'formDatas',
    name: 'formDatas',
    navigationStyle: 'custom',
    navigationBarTitleText: '表单数据',
    children: [
      {
        path: 'statisticsDetail',
        name: 'statisticsDetail',
        navigationStyle: 'custom',
        navigationBarTitleText: '查看详情',
      },
    ],
  },
  {
    path: 'exportRecord',
    name: 'exportRecord',
    navigationStyle: 'custom',
    navigationBarTitleText: '数据操作记录',
    children: [
      {
        path: 'exportDetail',
        name: 'exportDetail',
        navigationStyle: 'custom',
        navigationBarTitleText: '表格下载',
      },
    ],
  }
];

export default modules;
